package com.cn.busi.exception;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 错误结果
 * 
 * @author ZSL
 *
 */
public class ErrorResult {

	/**
	 * 错误代码
	 */
	public int code;
	/**
	 * 提示消息
	 */
	public String message;
	

	public ErrorResult() {
	}

	public ErrorResult(int code, String message) {
		this.code = code;
		this.message = message;
	}

	
	@Override
	public String toString() {		
		return ToStringBuilder.reflectionToString(this,ToStringStyle.JSON_STYLE);
	}
}
